let GpsController = require('./controller/GpsController');

let ApiList = {

	/*============================================================
	 Gps相关Api
	 ============================================================*/
	'/GPS/uploadPosition/:random': [GpsController.uploadPosition, 'json'],                                   // 上传设备位置等信息
	'/GPS/direct': [GpsController.direct, 'gps_no', 'direct_state', 'protocol_no, "LLTQ"', 'factory_code', 'type', 'direct_code', 'remark, ""'],  // 发指令
	'/GPS/getPositionOfLatest': [GpsController.getPositionOfLatest, 'gps_no'],                               // 获取设备最新位置
	'/GPS/getPositionOfPeriod': [GpsController.getPositionOfPeriod, 'gps_no', 'start_time', 'end_time'],     // 获取设备一段时间位置
};

module.exports = ApiList;